﻿using System;
using System.Collections.Generic;
using System.Windows.Data;

namespace Deployment.Data.UI.Converters
{
    public class ObjectToAbstraceVariableEditorControl :IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            if (value is Data.Variable.AbstractVariable)
            {
                return (value as Data.Variable.AbstractVariable).EditorControl;
            }
            return null;
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
